﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataBase.Daihoctuonglai;

namespace dai_hoc_tuong_lai.Areas.Admin.Models
{
    public class RolesModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public Nullable<int> Perssiom { get; set; }
        public Nullable<System.DateTime> Datecreate { get; set; }
        public Nullable<bool> accessAdmin { get; set; }
        public string Title { get; set; }

        public static void MapForm(RolesModel modle, ref Role entity)
        {
            entity.Id = modle.Id;
            entity.Name = modle.Name;
            entity.Perssiom = modle.Perssiom;
            entity.Datecreate = modle.Datecreate;
            entity.accessAdmin = modle.accessAdmin;
            entity.Title = modle.Title;
        }

        public static void MapForm( Role entity, ref RolesModel modle)
        {
            modle.Id = entity.Id;
            modle.Name = entity.Name;
            modle.Perssiom = entity.Perssiom;
            modle.Datecreate = entity.Datecreate;
            modle.accessAdmin = entity.accessAdmin;
            modle.Title = entity.Title;
        }

    }
}